package com.chag.biz.userbase.service;

import com.chag.framework.common.ServiceResult;
import com.taobao.api.response.AlibabaAliqinFcSmsNumSendResponse;

/**
 * Created with IntelliJ IDEA.
 * User: CHAG
 * Date: 2016/6/8
 * Time: 23:14
 * 短信服务接口.
 */
public interface IMessageService {
    /**
     * 发送短信验证码方法
     *
     * @param phone        手机号码
     * @param validateCode 验证码
     * @return
     */
    ServiceResult<AlibabaAliqinFcSmsNumSendResponse> sendValidateCode(String phone, String validateCode) throws Exception;

    /**
     * 短信发送消息服务
     *
     * @param phone   手机号码
     * @param content 短信内容
     * @return
     */
    ServiceResult<String> sendMessage(String phone, String content) throws Exception;
}
